#include<bits/stdc++.h>
using namespace std;
int a[100010];
int n,b,c=100010;
int main(){
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	cin >>n;
	for (int i=1;i<=n;i++){
		cin >>b;
		a[b]+=1;
		c=min(c,b);
	}
	cout <<a[c];
	return 0;
}
